//版心
@mixin container {
    width: 1200px;
    margin: 0 auto;
}

//文字样式
@mixin afonts {
    text-decoration: none;
    color: #000;
}

// 头部
#header {
    @include container();
    height: 161px;
    display: flex;
    align-items: center;

    .logo {
        height: 75px;
        display: flex;
        align-items: center;
        margin-left: 20px;

        img {
            width: 75px;
            height: 75px;
        }

        .right {
            margin-left: 33px;
        }

        a {
            @include afonts();
        }

        h3 {
            font-size: 28px;
            font-weight: bold;
        }

        span {
            font-size: 9px;
        }

        .right {
            height: 45px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
        }

    }

    .tips {
        color: gray;
        font-size: 13px;
        margin-left: 30px;
    }

    .ueser {
        display: flex;
        margin-left: 420px;

        a {
            @include afonts();
            display: inline-block;
            width: 50px;

            &:hover {
                color: rgb(254, 228, 78);
            }
        }
    }
}

// 主体
#main {
    overflow: hidden;

    .bg {
        margin-bottom: 20px;
    }

    // 购物车列表
    .cartList {
        @include container();
        margin-bottom: 30px;
        background-color: white;

        td,
        th {
            border-bottom: 1px solid #000;
            text-align: center;
            padding: 15px;
        }

        input[name='minus'],
        input[name='plus'] {
            width: 20px;
            text-align: center;
            background-color: #f1ebeb;
        }

        input[name='amount'] {
            width: 50px;
            text-align: center;
        }

        .delete-btn{
            color: #000;
        }

    }

    // 结算
    .settlement {
        @include container();
        height: 75px;
        background-color: white;
        margin-bottom: 50px;

        display: flex;
        justify-content: flex-end;
        align-items: center;

        .totalPrice{
            font-size: 20px;
            color: orange;
            font-weight: bold;
        }

        .js{
            width: 125px;
            height: 50px;
            background: orange;
            color: #fff;
            font-weight: bold;
            border: 0px solid #000;
            margin-left: 50px;
        }


    }
}